package cn.arnold.offer.crip;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String nodes = scan.nextLine();
        // 转为数组
        String[] splitNodes = nodes.split(" ");
        List<String> list = new ArrayList<String>();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < splitNodes[0].length(); i++) {
            sb.append(splitNodes[0].charAt(i));
            list.add(sb.toString());
        }
        for (int i = 0; i < splitNodes[1].length(); i++) {
            sb.append(splitNodes[0].charAt(i));
            list.add(sb.toString());
        }


    }

}
